﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace S4Store.Domain
{
    public abstract class ConfirmAble
    {
        public int Id { get; set; }

        public int ConfirmId { get; set; }

        [NotMapped]
        public  bool IsConfirmed
        {
            get { return DataConfirm!=null&&DataConfirm.IsConfirmed; }
        }

        public virtual DataConfirm DataConfirm { get; set; }
    }
}
